package com.aspose.cells;

import java.util.ArrayList;

class zbp implements zafo {
   private zig x;
   private int y;
   private boolean z;
   private zalw A;
   private zat B;
   private int C;
   private boolean D = true;
   private int E;
   private double F;
   private int G;
   private boolean H;
   private boolean I;
   private boolean J;
   private zalw K;
   private zalw L;
   private int M;
   private double N;
   private int O;
   private double P;
   private int Q;
   private double R;
   private int S;
   private double T;
   private int U;
   private zbtk V;
   private int W;
   private boolean X;
   private int Y;
   private zbto Z;
   private boolean aa;
   private boolean ab;
   private boolean ac;
   private boolean ad;
   private zrn ae;
   ArrayList a = new ArrayList();
   double b;
   double c;
   double d;
   double e;
   private int af;
   private int ag;
   float f = 0.0F;
   float g = 0.0F;
   float h = 0.0F;
   float i = 0.0F;
   float j = 0.0F;
   float k = 0.0F;
   ArrayList l;
   int m = 0;
   boolean n = true;
   boolean o = false;
   boolean p = false;
   boolean q = false;
   boolean r = false;
   boolean s = false;
   boolean t = false;
   boolean u = false;
   com.aspose.cells.b.a.b.zs v = com.aspose.cells.b.a.b.zs.a();
   zbp w = null;
   private int ah;
   private int ai = 3;
   private boolean aj = false;
   private double ak = 10.0D;
   private String al = "";
   private com.aspose.cells.b.a.b.zo am = com.aspose.cells.b.a.b.zo.a();
   private com.aspose.cells.b.a.b.zo an = com.aspose.cells.b.a.b.zo.a();
   private boolean ao = false;

   int a() {
      return this.ah;
   }

   void a(int var1) {
      this.ah = var1;
   }

   int b() {
      return this.ai;
   }

   void b(int var1) {
      this.ai = var1;
   }

   boolean c() {
      return this.g() == 0 || this.g() == 2;
   }

   boolean d() {
      return this.g() == 1 || this.g() == 3;
   }

   zbp(zig var1, int var2) {
      this.x = var1;
      this.y = var2;
      this.z = true;
      this.A = new zalw(var1, 4);
      this.B = new zat(var1, this, 2);
      this.C = 1;
      this.E = 1;
      this.G = 0;
      this.K = new zalw(var1, 2);
      this.L = new zalw(var1, 3);
      this.L.a(0);
      if (var2 == 4) {
         this.a(true);
      }

      if (var2 == 0) {
         this.K.a(0);
      } else if (var2 == 2) {
         this.K.a(0);
      } else if (var2 != 1) {
         if (var2 == 3) {
            this.K.a(0);
         } else if (var2 == 4) {
            this.K.a(0);
         }
      }

      this.Z = new zbto(var1, this, 9, 11);
      this.H = false;
      this.I = false;
      this.J = true;
      this.M = 3;
      this.N = 0.0D;
      this.O = 1;
      this.P = 0.0D;
      this.Q = 2;
      this.R = 0.0D;
      this.S = 1;
      this.T = 0.0D;
      this.U = 2;
      this.V = new zbtk(this);
      this.W = 1;
      this.X = true;
      this.Y = 1;
      this.aa = true;
      this.ab = true;
      this.ac = true;
      this.ad = true;
      this.l = new ArrayList();
      this.af = 4;
      this.ag = 3;
      this.ae = new zrn(var1, this, 13);
   }

   zig e() {
      return this.x;
   }

   int g() {
      return this.y;
   }

   public boolean f() {
      return this.z;
   }

   public void a(boolean var1) {
      this.z = var1;
   }

   zalw l() {
      return this.A;
   }

   public zahf h() {
      return this.A;
   }

   public zafn i() {
      return this.B;
   }

   zat m() {
      return this.B;
   }

   public int j() {
      return this.C;
   }

   public void c(int var1) {
      this.C = var1;
      this.e(false);
   }

   public int k() {
      return this.E;
   }

   public void d(int var1) {
      this.E = var1;
   }

   public double s() {
      return this.F;
   }

   public void a(double var1) {
      this.F = var1;
      this.G = 2;
   }

   public int u() {
      return this.G;
   }

   public void e(int var1) {
      this.G = var1;
      if (var1 == 1) {
         this.o = true;
      }

   }

   public boolean n() {
      return this.H;
   }

   public void b(boolean var1) {
      this.H = var1;
   }

   public double o() {
      return this.ak;
   }

   public void b(double var1) {
      if (this.ak >= 2.0D && this.ak <= 1000.0D) {
         if (zbuk.g(var1) > 1) {
            double var3 = com.aspose.cells.b.a.zq.b(var1, 2);
            this.ak = com.aspose.cells.b.a.ze.g(com.aspose.cells.b.a.zn.b(var3).substring(0, 0 + (com.aspose.cells.b.a.zn.b(var3).length() - 1)));
         } else {
            this.ak = var1;
         }

      } else {
         throw new IllegalArgumentException("Logarithmic Scale Base must between 2 to 1000");
      }
   }

   double g(double var1) {
      double var3 = com.aspose.cells.b.a.zq.a(var1, this.o());
      return var3;
   }

   double h(double var1) {
      return Math.pow(this.o(), var1);
   }

   public boolean p() {
      return this.I;
   }

   public void c(boolean var1) {
      this.I = var1;
   }

   public boolean q() {
      return this.J;
   }

   public void d(boolean var1) {
      this.J = var1;
   }

   public boolean r() {
      return this.D;
   }

   public void e(boolean var1) {
      this.D = var1;
   }

   zalw w() {
      return this.K;
   }

   public zahf t() {
      return this.K;
   }

   zalw A() {
      return this.L;
   }

   public zahf v() {
      return this.L;
   }

   public int E() {
      return this.M;
   }

   public void f(int var1) {
      this.M = var1;
   }

   public double x() {
      return this.N;
   }

   public void c(double var1) {
      if (var1 > 0.0D) {
         this.N = var1;
         this.ac = false;
      }

   }

   public int y() {
      return this.O;
   }

   public void g(int var1) {
      this.O = var1;
   }

   public double z() {
      return this.P;
   }

   public void d(double var1) {
      this.P = var1;
      this.ab = false;
   }

   public int F() {
      return this.Q;
   }

   public void h(int var1) {
      this.Q = var1;
   }

   public double B() {
      return this.R;
   }

   public void e(double var1) {
      this.R = var1;
      this.j(false);
   }

   public int C() {
      return this.S;
   }

   public void i(int var1) {
      this.S = var1;
   }

   public double D() {
      return this.T;
   }

   public void f(double var1) {
      this.T = var1;
      this.g(false);
   }

   public int I() {
      return this.U;
   }

   public void j(int var1) {
      this.U = var1;
   }

   zbtk J() {
      return this.V;
   }

   public zaif G() {
      return this.V;
   }

   public int H() {
      return this.W;
   }

   public void k(int var1) {
      if (var1 > 0) {
         this.W = var1;
      }

   }

   public boolean K() {
      return this.X;
   }

   public void f(boolean var1) {
      this.X = var1;
   }

   public int Q() {
      return this.Y;
   }

   public void l(int var1) {
      if (var1 > 0) {
         this.Y = var1;
      }

   }

   zbto S() {
      return this.Z;
   }

   public zaig L() {
      return this.Z;
   }

   public boolean M() {
      return this.aa;
   }

   public void g(boolean var1) {
      this.aa = var1;
   }

   public boolean N() {
      return this.ab;
   }

   public void h(boolean var1) {
      this.ab = var1;
   }

   public boolean O() {
      return this.ac;
   }

   public void i(boolean var1) {
      this.ac = var1;
   }

   public boolean P() {
      return this.ad;
   }

   public void j(boolean var1) {
      this.ad = var1;
   }

   zrn T() {
      return this.ae;
   }

   public zagp R() {
      return this.ae;
   }

   public String U() {
      return this.al;
   }

   public void a(String var1) {
      this.al = var1;
   }

   double V() {
      return this.n() ? this.g(this.z()) : this.z();
   }

   double W() {
      return this.n() ? this.g(this.D()) : this.D();
   }

   double X() {
      return this.n() ? this.g(this.s()) : this.s();
   }

   double Y() {
      return this.n() ? this.g(this.x()) : this.x();
   }

   double Z() {
      return this.n() ? this.g(this.B()) : this.B();
   }

   double i(double var1) {
      if (var1 > this.V()) {
         var1 = this.V();
      }

      if (var1 < this.W()) {
         var1 = this.W();
      }

      return var1;
   }

   int aa() {
      return this.af;
   }

   void m(int var1) {
      this.af = var1;
   }

   int ab() {
      return this.ag;
   }

   void n(int var1) {
      this.ag = var1;
   }

   int ac() {
      boolean var1 = false;
      if (this.G().a() != null) {
         int var2 = zbuk.c((double)(this.ad() * 0.2F));
         return var2 < 2 ? 2 : var2;
      } else {
         return 0;
      }
   }

   float ad() {
      return (float)zbuk.a((double)this.e().ap().a().a(this.G().a()));
   }

   zbp ae() {
      zbp var1 = null;
      if (this.g() == 0) {
         var1 = this.e().G();
      } else if (this.g() == 2) {
         var1 = this.e().I();
      } else if (this.g() == 1) {
         var1 = this.e().e();
      } else if (this.g() == 3) {
         var1 = this.e().g();
      }

      return var1;
   }

   void a(com.aspose.cells.b.a.b.zo var1) {
      this.am = var1;
   }

   void b(com.aspose.cells.b.a.b.zo var1) {
      this.an = var1;
   }

   protected void finalize() throws Exception {
      this.k(false);
   }

   public void af() {
      this.k(true);
      com.aspose.cells.b.a.zg.a(this);
   }

   protected void k(boolean var1) {
      if (!this.ao) {
         if (var1) {
            if (this.V != null) {
               this.V.m();
            }

            if (this.Z != null) {
               this.Z.n();
            }

            if (this.ae != null) {
               this.ae.n();
            }
         }

         this.ao = true;
      }

   }
}
